using System;
using System.Windows.Forms;

using FreeFlow.Administration;

namespace FreeFlowAdministrator
{
	/// <summary>
	/// Summary description for TableDataAdaptor.
	/// </summary>
	public class TableDataAdaptor : Adaptor
	{
    private Table table;
		public TableDataAdaptor(Table table)
		{
      this.table = table;
		}

    public override string Text
    {
      get
      {
        return "Data";
      }
    }

    public override object Object
    {
      get
      {
        return table;
      }
    }

    public override Control GetRenderer()
    {
      TableControl control = new TableControl();
      control.LoadTable(table);
      return control;
    }

    public override int ImageIndex
    {
      get
      {
        return 35;
      }
    }
	}
}
